package org.jeecg.modules.tplus.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.util.List;

/**
 *  存货调价单列表查询
 *
 * @author hzq
 */
@Data
public class InventoryAdjustPriceQueryReqDto {
    /**
     * 查询条件
     */
    @Schema(description = "查询条件")
    @JsonProperty(value = "paramDic")
    private InventoryAdjustPriceParamDic paramDic;

    @Getter
    @Setter
    public static class InventoryAdjustPriceParamDic{
        @JsonProperty(value = "InventoryAdjustPrice.VoucherDate")
        private List<ParamDicReqDto> voucherDate;

        @JsonProperty(value = "InventoryAdjustPrice.Code")
        private List<ParamDicReqDto> code;
    }

    @Setter
    @Getter
    public static class ParamDicReqDto {
        /**
         * 内容
         */
        @Schema(description = "内容")
        @JsonProperty(value = "text")
        private String text;

        /**
         * 值
         */
        @Schema(description = "值")
        @JsonProperty(value = "value")
        private String value;
    }

    /**
     * 记录条数
     */
    @Schema(description = "记录条数")
    @JsonProperty(value = "pageSize")
    private int pageSize = 500;

    /**
     * 记录页数
     */
    @Schema(description = "记录页数")
    @JsonProperty(value = "pageIndex")
    private int pageIndex;

    /**
     * 返回字段
     */
    @Schema(description = "返回字段")
    @JsonProperty(value = "selectFields")
    private List<String> selectFields;

}
